<template>
  <view class="container">
    <view class="helpdetail-box">
      <div class="box-title">{{ helpDetail.title }}</div>
      <div class="box-content">
        {{ helpDetail.text }}
      </div>
    </view>
  </view>
</template>

<script>
// 引入接口文件
const { getHelp } = require("../../api/user/helpdetail");
export default {
  props: {},
  components: {},
  data() {
    return {
      helpDetail: {},
    };
  },
  computed: {},
  watch: {},
  methods: {
    // 获取数据
    getHelpDetailData(params) {
      getHelp(params).then(res => {
        this.helpDetail = res;
      });
    },
  },
  created() {},
  onLoad(options) {
    this.getHelpDetailData({ hid: options.uuid });
  },
  mounted() {},
  beforeDestroy() {},
};
</script>

<style lang="scss" scoped>
.helpdetail-box {
  margin-top: 20rpx;
  padding: 30rpx;
  background-color: #fff;
  font-size: 32rpx;
  color: #333;

  .box-title {
    font-weight: bold;
  }

  .box-content {
    padding: 30rpx 0;
    text-align: left;
    font-size: 28rpx;
    color: #666666;
  }
}
</style>
